package com.br4mmie.asciistory;
/**
*  
* @author   Nicky Oosterlaar & Dennis Gerritsen
*  
*/
public class KeyBindingsConverter {
	
	private static String output;
	
	public static String decToChar(String dec)
	{
		if(!dec.equals("left") && !dec.equals("right") && !dec.equals("up") && !dec.equals("down") && !dec.equals("enter") && !dec.equals("backspace") && !dec.equals("escape") && !dec.equals("tab") && !dec.equals("capslock") && !dec.equals("left shift") && !dec.equals("right shift") && !dec.equals("left alt") && !dec.equals("right alt") && !dec.equals("space") && !dec.equals("left control") && !dec.equals("right control"))
		{
			int d = Integer.parseInt(dec); 
			char c = (char) d ;
			output = Character.toString(c);
		}
		else
		{
			output = dec;
		}
		return output;
	}
}
